package com.eulog.client;


import com.eulog.client.blackJack.BlackJack;
import com.eulog.client.blackJack.BlackJackPlayer;
import com.eulog.client.blackJack.BlackJackStrategy;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class BlackJackSimulator implements EntryPoint {

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
	  
	  BlackJack blackJack = new BlackJack(4,(float)1.5);
	  BlackJackPlayer p1 = new BlackJackPlayer(0,10,BlackJackStrategy.indexOfStrategyNull,5,true);
	  
	  blackJack.addPlayer(p1);
	  
	  ParameterPanel parameterPanel = new ParameterPanel(blackJack,p1);
	  RootPanel.get().add(parameterPanel);
  }
}
